home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8249 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  996 b 

  1. Path: news2.ios.com!usenet
  2. From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Fahrenheight to Celsius?
  5. Date: Fri, 16 Feb 1996 06:03:48 GMT
  6. Organization: Internet Online Services
  7. Message-ID: <4g163i$eb5@news2.ios.com>
  8. References: <4fra3q$ddt@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: ppp-37.ts-7.hck.idt.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. pauldo@aol.com (PaulDo) wrote:
  13.  
  14. >Could someone show me how to write a program that converts fahrenheit to
  15. >celsius and vice versa in C++?  I would really appreciate it.
  16. >PaulDo
  17.  
  18. One Fahrenheit degree is 5/9 of a Celsius degree.
  19.  
  20. To convert Fahrenheit into Celsius, substract 32, multiply by 5 and
  21. divide by 9.
  22.  
  23. To convert Celsius into Fahrenheit, multiply by 9, divide by 5, and
  24. add 32. 
  25. The freezing point of water is 32 degrees F. 
  26.  
  27. *******************************************
  28. *    Vlastimil Adamovsky                  *
  29. * Smalltalk, C++ and Envelop development  *
  30. *******************************************
  31.  
  32.